<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单一览页面</title>
<link href="css/jimu.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
function confirmDel(str){   
 return confirm(str);   
	}   
</script>
</head>
<body>
<!-- 头部的包含文件 -->
<%@include file="../common/head.jsp" %>
<table class="main">
	<tr>
		<td style="width:180px; vertical-align:top;">
		<%@ include file="../common/menu.jsp" %>
		</td>
		<td style="vertical-align:top;padding:20px;">
			<p>订单一览：</p>
			<table class="listTbl">
				<tr>
					<th>订单编号</th>
					<th>订单人</th>
					<th>订单日期</th>
					<th>订单状态</th>
					<th>操作</th>
				</tr>
				
				<s:iterator value="orders">
				<tr>
					<td style="text-align:center;"><s:property value="id"/></td>
					<td style="text-align:center;">
						<s:property value="userBean.name"/>
					</td>
					<td style="text-align:center;">
						<s:property value="orderdate"/>
					</td>
					<td style="text-align:center;">
						<s:property value="flag"/>
					</td>
					<td style="text-align:center;">
						<a href="detailOrder.action?id=<s:property value="id"/>">详情</a>
						<a href="delOrder1.action?id=<s:property value="id" /> " onclick="return confirmDel('确定要删除吗')">删除</a>
					</td>
				</tr>
				</s:iterator>
			</table>
		</td>
	</tr>
</table>

<%@include file="../common/tail.jsp" %>
</body></html>